package com.syerit.controller
{
	import com.syerit.ApplicationFacade;
	import com.syerit.view.MainAppMediator;
	
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;

	public class ViewPrepCommand extends SimpleCommand implements ICommand
	{
		override public function execute(notification:INotification):void
		{
			var app:MainApp = notification.getBody() as MainApp;
			facade.registerMediator(new MainAppMediator(app));
			sendNotification(ApplicationFacade.PROXY_LOAD_CONFIG);
		}
	}
}